import request from '@/utils/request'

export function findInterfaceLogRecord(page,size,beginTime,endTime) {
  return request({
    url: '/authcenter/sys-log/findPageInterfaceLog',
    method: 'get',
    params: {
      page: page,
      size: size,
      beginTime: beginTime,
      endTime: endTime
    }
  })
}

export function findLoginLogRecord(page,size,appId,beginTime,endTime) {
  return request({
    url: '/authcenter/sys-log/findPageLoginLog',
    method: 'get',
    params: {
      page: page,
      size: size,
      beginTime: beginTime,
      endTime: endTime,
      appId: appId
    }
  })
}

export function getInterfaceLog(id) {
  return request({
    url: '/authcenter/sys-log/getInterfaceLog',
    method: 'get',
    params: {id: id}
  })
}

export function getLoginLog(id) {
  return request({
    url: '/authcenter/sys-log/getLoginLog',
    method: 'get',
    params: {id: id}
  })
}
